package com.flying.learning.si.sg.gateways;

import org.springframework.integration.annotation.Gateway;
import org.springframework.integration.annotation.MessagingGateway;

import java.util.concurrent.Future;

@MessagingGateway(name = "helloWorldGateway")
public interface HelloWorldGateway {
//    @Gateway(requestChannel = "say.hello.channel")
//    void sayHello(String name);

    @Gateway(requestChannel = "get.hello.channel", replyChannel = "say.hello.channel")
    String getHelloMessage(String name);

//    @Gateway(requestChannel = "get.hello.channel")
//    Future<String> getHelloMessageAsync(String name);
}
